package lesson17Inheritance;

public class Zoo {
	public static void main(String[] args) {
		Animal animal = new Animal(2);
		animal.weight = 30;
		
		System.out.println(animal.weight);
		
		Cat cat = new Cat();
		
		System.out.println(Animal.className);
		Dog dog = new Dog();
		
		System.out.println(cat.className);
		Tiger tiger = new Tiger();
		cat.className = "Shrooms";
		System.out.println(Animal.className);
		System.out.println(animal.age);
		System.out.println(cat.age);
	}
}
